package com.newly.common.base.entity.sys.dict.vo;

import com.newly.common.base.entity.sys.tenant.po.TenantPo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author gjm guan
 * @date 2021/11/9 17:29
 * @desc 租户字典数据
 */
@ApiModel(value = "字典租户VO")
@Data
public class TenantDictVo {
    /**
     * id
     */
    @ApiModelProperty("id")
    private Long tenantId;

    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    private String username;
    /**
     * 昵称
     */
    @ApiModelProperty("名称")
    private String nickname;

    public TenantDictVo() {
    }

    public TenantDictVo(TenantPo tenantPo) {
        this.tenantId = tenantPo.getId();
        this.username = tenantPo.getUsername();
        this.nickname = tenantPo.getNickname();
    }
}
